/* 注册账号获取的手机验证码泛型 */
export interface PhoneCodeData {
  code: number;
  message: string;
  data: string;
  ok: boolean;
}

/* 注册账号和登录账号的params参数泛型 */
export interface RegisterParamsData {
  phone:string
  password:string
  code?:string
}
/* 登录成功的返回值泛型 */
export interface ResLoginData {
  code: number;
  message: string;
  data: ResTokenData;
  ok: boolean;
}
/* token 泛型 */
export interface ResTokenData {
  token: string;
}

/* 登录成功返回的用户信息 */
export interface ResUserInfoData {
  code: number;
  message: string;
  data: UserInfoData;
  ok: boolean;
}

/* 用户信息泛型 */
export interface UserInfoData {
  id: number | string;
  loginName: string;
  nickName: string;
  passwd: string;
  name: string;
  phoneNum: string;
  email?: any;
  headImg: string;
  userLevel: string;
  status: number | string;
  birthday?: any;
  gender: string;
  createTime: string;
  operateTime: string;
  openId?: any;
}

/* 订单列表数据泛型 */
export interface ResOrderListData {
  code: number;
  message: string;
  data: ResData;
  ok: boolean;
}

export interface ResData {
  records: OrderListData[];
  total: number;
  size: number;
  current: number;
  searchCount: boolean;
  pages: number;
}

export interface OrderListData {
  id: number;
  consignee: string;
  consigneeTel: string;
  totalAmount: number;
  orderStatus: string;
  userId: number;
  paymentWay: string;
  deliveryAddress: string;
  orderComment: string;
  outTradeNo: string;
  tradeBody: string;
  createTime: string;
  operateTime?: any;
  expireTime: string;
  processStatus: string;
  trackingNo?: any;
  parentOrderId?: any;
  imgUrl?: any;
  provinceId?: any;
  activityReduceAmount?: any;
  couponAmount?: any;
  originalTotalAmount?: any;
  feightFee?: any;
  feightFeeReduce?: any;
  refundableTime?: any;
  orderDetailList: OrderDetailList[];
  orderDetailVoList?: any;
  orderStatusName: string;
  wareId?: any;
  couponInfo?: any;
}

export interface OrderDetailList {
  id: number;
  orderId: number;
  skuId: number;
  skuName: string;
  imgUrl: string;
  orderPrice: number;
  skuNum: number;
  createTime: string;
  sourceType: string;
  sourceId: number;
  splitTotalAmount: number;
  splitActivityAmount: number;
  splitCouponAmount: number;
  refundStatus: string;
  refundStatusString: string;
  hasStock?: any;
  activityRule?: any;
  couponInfoList?: any;
}

/* 注册账号返回泛型 */

export interface ResRegisterData{
  code: number
  data: null
  message: string
  ok: boolean
}

